
dict1 = {'杨幂': 100, '王静坤': 90, '佟丽娅': 98, '赵丽颖': 95}

# dict1.setdefault('王静坤',80)
result = dict1.pop('马伊利','没有这个人')
print (dict1)
print(result)
# l = list(dict1)
# print(type(l))
#
# dict2= {}
# dict2 = dict2.fromkeys(l,60)
# print(dict2)
# for i in dict1:
#     # print (i)
#     print(i,dict1[i])
# for i in dict1.keys():
#     print (i)
#
# for i in dict1.values():
#     print (i)

for k,val in dict1.items():
    print (k, val)

print(dict1)
#
# dict2 = {'name':'d','age':18,'email':'sd','gender':'男','address':''}
#
# print(dict2)